Related Vulnerabilities: CVE-2021-21692  

A security issue has been found in Jenkins before version 2.319. The operations FilePath#renameTo and FilePath#moveAllChildrenTo only check read permission on the source path. This allows agent processes to read and write arbitrary files on the Jenkins controller file system, and obtain some information about Jenkins controller file systems.

Severity Critical

Remote Yes

Type Arbitrary filesystem access

Description

A security issue has been found in Jenkins before version 2.319. The operations FilePath#renameTo and FilePath#moveAllChildrenTo only check read permission on the source path. This allows agent processes to read and write arbitrary files on the Jenkins controller file system, and obtain some information about Jenkins controller file systems.

AVG-2526 jenkins 2.318-1 Critical Vulnerable

https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2455